﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace WindowsForms
{
    public partial class XtraReportBooking : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReportBooking()
        {
            InitializeComponent();
        }

        public void bindData(string dateFrom, string dateTo)
        {
            lbldateFrom.Text = dateFrom;
            lbldateTo.Text = dateTo;

            lblBookingNumber.DataBindings.Add("Text", DataSource, "BookingNumber");
            lblStaffName.DataBindings.Add("Text", DataSource, "StaffName");
            lblTableName.DataBindings.Add("Text", DataSource, "TableName");
            lblBookingid.DataBindings.Add("Text", DataSource, "BookingID");
            lblTotal.DataBindings.Add("Text", DataSource, "TotalAmount");

            //int bookingID = int.Parse(lblBookingid.Text);
        }
    }
}
